import request from "@/utils/requset"
//获取就诊人列表
export const getPatientListAPI = ()=>request.get('/patient/list')
//添加就诊人
export const addPatientAPI = (data)=>request.post('/patient/add',data)
//删除就诊人
export const deletePatientAPI = (id)=>request.delete(`/patient/delete?id=${id}`)
//获取就诊人详情
export const getPatientDetailAPI = (id)=>request.get(`/patient/detail?id=${id}`)
//修改就诊人
export const updataPatientAPI = (data)=>request.put(`/patient/update?id=${data._id}`,data)